package oo7;

public class UsbTester {
	// 测试usb
	public void test(USB u) {
		u.plugin();
		u.unplug();
		System.out.println("观察是否正常工作");
	}

	public static void main(String[] args) {
		UsbTester test = new UsbTester();
		USBDisk u = new USBDisk();
		test.test(u);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		USB u2 = new USBFan("扬子", 50);
		test.test(u2);
	}

}
